home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / The World of Computer Software.iso / coolcolr.zip / MAKEFILE < prev    next >
Text File  |  1992-12-02  |  2KB  |  84 lines

  1. #****************************************************************************
  2. #      File:  MAKEFILE                                                    
  3. #                                                                         
  4. #   Purpose:  Builds the sample Control Panel Extension
  5. #             To build a non debug version, type nmk at command line
  6. #             To build a debug version, type nmk DEBUG=YES at the command line                                               
  7. #                                                                         
  8. # Development Team:
  9. #
  10. #       Greg Keyser
  11. #
  12. # Written by Microsoft Product Support Services, Windows Developer Support
  13. # Copyright (c) 1992 Microsoft Corporation. All rights reserved.
  14. #****************************************************************************
  15.  
  16. NAME = coolcolr
  17. OBJ1 = coolcolr.obj appdlg.obj error.obj
  18. OBJ  = $(OBJ1)
  19. LIBS = libw sdllcew commdlg
  20.  
  21. !if "$(DEBUG)" == "YES"
  22. DEF     = -DDEBUG
  23. CLOPT   = -Zi -Od
  24. MASMOPT = -Zi
  25. LINKOPT = /CO
  26. !else
  27. DEF     =
  28. CLOPT   = -Oas
  29. MASMOPT =
  30. LINKOPT =
  31. !endif
  32.  
  33. CC      = cl -c -nologo -W3 -AS -G2sw -Zp $(DEF) $(CLOPT)
  34. ASM     = masm -Mx -t -D?QUIET $(DEF) $(MASMOPT)
  35. LINK    = link /NOPACKC/NOD/NOE/LI/MAP/ALIGN:16 $(LINKOPT)
  36.  
  37. .c.obj:
  38.     $(CC) $*.c
  39.  
  40. .asm.obj:
  41.     $(ASM) $*;
  42.  
  43. goal: $(NAME).cpl copy
  44.  
  45. ###################################
  46.  
  47. $(NAME).cpl: $(OBJ) libinit.obj coolcolr.def $(NAME).res
  48.     $(LINK) @<<
  49.     libinit.obj +
  50.     $(OBJ1),
  51.     $(NAME).cpl,
  52.     $(NAME).map,
  53.     $(LIBS),
  54.     coolcolr.def
  55. <<
  56.     rc -v $(DEF) $(NAME).res $(NAME).cpl
  57. !if "$(DEBUG)" == "YES"
  58.     -cvpack -p $(NAME).cpl
  59.     mapsym $(NAME).map
  60. !endif
  61.  
  62. $(NAME).res: coolcolr.rc
  63.     rc $(DEF) -r -V -fo $(NAME).res coolcolr.rc
  64.  
  65. libinit.obj: libinit.asm
  66.     $(ASM) -DSEGNAME=_INIT -DWEPSEG=_WEP $*;
  67.  
  68. ############## copy ###############
  69.  
  70. copy:
  71.  
  72. ###################################
  73. # START Dependencies 
  74.  
  75. appdlg.obj: appdlg.c global.h
  76.  
  77. coolcolr.obj: coolcolr.c global.h
  78.  
  79. error.obj: error.c global.h
  80.  
  81. libinit.obj: libinit.asm
  82.  
  83. # END Dependencies 
  84.